package com.xmy.study.util;

public class Code {
    //    操作结果编码
    public static final Integer OK = 20000;
    public static final Integer SAVE_OK = 20000;
    public static final Integer UPDATE_OK = 20000;
    public static final Integer DELETE_OK = 20000;
    public static final Integer GET_OK = 20000;

    public static final Integer ERROR = 50000;
    public static final Integer SAVE_ERROR = 50000;
    public static final Integer UPDATE_ERROR = 50000;
    public static final Integer DELETE_ERROR = 50000;
    public static final Integer GET_ERROR = 50000;

    public static final Integer FACE_ERROR = 50002;

    public static final String OK_MSG = "操作成功";
    public static final String SAVE_OK_MSG = "添加成功";
    public static final String UPDATE_OK_MSG = "修改成功";
    public static final String DELETE_OK_MSG = "删除成功";
    public static final String GET_OK_MSG = "获取数据成功";

    public static final String ERROR_MSG = "操作失败";
    public static final String SAVE_ERROR_MSG = "添加失败";
    public static final String UPDATE_ERROR_MSG = "修改失败";
    public static final String DELETE_ERROR_MSG = "删除失败";
    public static final String GET_ERROR_MSG = "获取数据失败";

    public static final Integer EXP_ERROR = 50001;
    public static final String EXP_MSG = "数据异常";


    //订单状态编码
    /**
     * 报名
     */
    public static final Integer ORDER_TYPE_SiGN = 1;//报名
    /**
     * 补费
     */
    public static final Integer ORDER_TYPE_SUPP = 2;//补费
    /**
     * 转课
     */
    public static final Integer ORDER_TYPE_TRANSFER = 3;//转课
    /**
     * 退费
     */
    public static final Integer ORDER_TYPE_REFUND = 4;//退费

    public static final Integer ORDER_TYPE_TRANSFERSCHOOL = 5;//转校

}
